//
//  XOShopDetailInfoHeaderReusableView.m
//  XiOuMall
//
//  Created by lifayu on 2018/3/1.
//  Copyright © 2018年 lifayu. All rights reserved.
//

#import "XOShopDetailInfoHeaderReusableView.h"
#import "XOShopModel.h"
@implementation XOShopDetailInfoHeaderReusableView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.shopLogoImageView.layer.cornerRadius = 5;
    self.shopLogoImageView.layer.masksToBounds = YES;
    // Initialization code
}

- (void)setShopModel:(XOShopModel *)shopModel{
    _shopModel = shopModel;
    self.shopNameLabel.text = shopModel.shopName;
    self.shopIntroLabel.text = shopModel.intro;
    [self.shopBgImageView setImageWithUrl:shopModel.bg PlaceHolder:[UIImage imageNamed:@"newDefaultImage"]] ;
    [self.shopLogoImageView setImageWithUrl:shopModel.logo PlaceHolder:[UIImage imageNamed:@"newDefaultImage"]];
}

@end
